//
//  LoginKit.h
//  Share
//
//  Created by CPX on 2018/10/15.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class LoginResult;
typedef void(^LoginSuccess)(LoginResult * result);
typedef void(^LoginError)(NSError* _Nullable error);


/**
 登录模块
 @author yzl
 */
@interface LoginKit : NSObject


/**
 FaceBook登录

 @param success 成功block
 @param loginError 失败block
 */
+ (void) FBLoginWithSuccess:(LoginSuccess)success error:(LoginError)loginError;


/**
 Twitter登录

 @param success 成功block
 @param loginError 失败block
 */
+ (void) TwitterLoginWithSuccess:(LoginSuccess)success error:(LoginError)error;

/**
 Google登录
 
 @param success 成功block
 @param loginError 失败block
 */
+ (void) GoogleLoginWithSuccess:(LoginSuccess)success error:(LoginError)loginError;

@end

NS_ASSUME_NONNULL_END
